<template>
  <div id="root">
    <h1>主应用</h1>
      <div>
      <el-button type="primary" @click="$router.replace({ path: '/reactApp' })">按钮</el-button>
      <el-image src="https://main.hsh.com.cn/webApi/uploads/20220312/VjBt5B7F6Mpno7mpqZ-16_11_47-role.png"></el-image>
    </div>
    <div>
      <a @click.prevent="$router.replace({ path: '/' })">home</a> |
      <a @click.prevent="$router.replace({ path: '/about' })">about</a> |
      <a @click.prevent="$router.replace({ path: '/vueApp' })">vueApp</a> |
      <a @click.prevent="$router.replace({ path: '/reactApp' })">reactApp</a>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>

export default {
  name: 'App',
  components: {},
  data() {
    return {
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

.el-menu-vertical-demo:not(.el-menu--collapse) {
  width: 200px;
  min-height: 400px;
}
</style>
